package com.mmall.concurrency.example.threadLocal;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * <p>Descriptions...
 *
 * @author Diamon.Cheng
 * @date 2019/12/6.
 */
@Controller
@RequestMapping("/threadLocal")
public class ThreadLocalControllers {
    
    
    @RequestMapping("/test")
    @ResponseBody
    public  Long test(){
        
        return RequestHolders.getId();
    }
}
